package com.yule.system.model;

import java.io.Serializable;
import java.util.Date;
import org.springframework.stereotype.Component;

/**
 * system_log
 * @author 
 */
@Component
public class SystemLog implements Serializable {
    private Integer id;

    /**
     * 租户id
     */
    private Integer corpId;

    /**
     * 操作人姓名
     */
    private String name;

    /**
     * 操作
     */
    private String operate;

    /**
     * 模块
     */
    private String module;

    /**
     * 内容
     */
    private String content;

    /**
     * 操作时间
     */
    private Date ctime;

    private String corpLoginName;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getCorpId() {
        return corpId;
    }

    public void setCorpId(Integer corpId) {
        this.corpId = corpId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getOperate() {
        return operate;
    }

    public void setOperate(String operate) {
        this.operate = operate;
    }

    public String getModule() {
        return module;
    }

    public void setModule(String module) {
        this.module = module;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public Date getCtime() {
        return ctime;
    }

    public void setCtime(Date ctime) {
        this.ctime = ctime;
    }

    public String getCorpLoginName() {
        return corpLoginName;
    }

    public void setCorpLoginName(String corpLoginName) {
        this.corpLoginName = corpLoginName;
    }

    public SystemLog() {

    }

    public SystemLog(SystemUser user, String operate, String module, String content, Date ctime) {
        this.corpLoginName = user.getCorpLoginName();
        this.corpId = user.getCorpId();
        this.name = user.getName();
        this.operate = operate;
        this.module = module;
        this.content = content;
        this.ctime = ctime;
    }

    private static final long serialVersionUID = 1L;
}